package com.matt.repository.rel;

import com.matt.domain.RelClassesTeachingArea;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2017/9/27
 * *******************************
 */
public interface RelClassesTeachingAreaRepository extends JpaRepository<RelClassesTeachingArea, String>{

    void deleteByClassesId(String classesId);

    List<RelClassesTeachingArea> findByClassesIdIn(List<String> classIds);

    List<RelClassesTeachingArea>  findByClassesId(String classesId);

    List<RelClassesTeachingArea>  findByTeachingAreaId(String teachingAreaId);
}
